import request from '@/utils/request'

// 查询微信用户余额明细列表
export function listMx(query) {
  return request({
    url: '/wx/balanceMx/list',
    method: 'get',
    params: query
  })
}

// 查询微信用户余额明细详细
export function getMx(id) {
  return request({
    url: '/wx/balanceMx/' + id,
    method: 'get'
  })
}

// 新增微信用户余额明细
export function addMx(data) {
  return request({
    url: '/wx/balanceMx',
    method: 'post',
    data: data
  })
}

// 修改微信用户余额明细
export function updateMx(data) {
  return request({
    url: '/wx/balanceMx',
    method: 'put',
    data: data
  })
}

// 删除微信用户余额明细
export function delMx(id) {
  return request({
    url: '/wx/balanceMx/' + id,
    method: 'delete'
  })
}

// 导出微信用户余额明细
export function exportMx(query) {
  return request({
    url: '/wx/balanceMx/export',
    method: 'get',
    params: query
  })
}
